package cn.sccdlg.lambda.demo02.impl;

import cn.sccdlg.lambda.demo02.IUserCredential;

/**
 * @author RaoShuang
 * @emil 991207823@qq.com
 * @date 2020/6/5 23:08
 * 用户身份验证实现类
 */
public class UserCredentialImpl implements IUserCredential {
    @Override
    public String verifyUser(String username) {
        if ("admin".equals(username)) {
            return "系统管理员";
        } else if("manager".equals(username)) {
            return "用户管理员";
        }
        return "普通会员";
    }
}
